Passed
Push — main ( b7799b...6c7a2f )
by Bjarn
03:09 queued 01:45
created

PackageManager   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 16
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 6

6 Functions

Rating   Name   Duplication   Size   Complexity  
A install 0 2 1
A remove 0 2 1
A packageIsInstalled 0 2 1
A uninstall 0 2 1
A update 0 2 1
A upgrade 0 2 1
1
abstract class PackageManager {
2
    abstract name: string
3
    abstract path: string
4
    abstract alias: string
5
6
    abstract install(pkg: string, cask: boolean): Promise<boolean>
7
8
    abstract uninstall(pkg: string, cask: boolean): Promise<boolean>
9
10
    abstract remove(pkg: string): Promise<boolean>
11
12
    abstract update(): Promise<boolean>
13
14
    abstract upgrade(pkg: string | undefined): Promise<boolean>
15
16
    abstract packageIsInstalled(pkg: string): Promise<boolean>
17
}
18
19
export default PackageManager